package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.qo.EmployeeQuery;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IEmployeeService {
    void  save(Employee employee, Long[] ids);

    void deleteByPrimaryKey(Long id);

    void updateByPrimaryKey(Employee employee, Long[] ids);

    Employee get(Long id);

    List<Employee> selectAll();

    PageInfo query(EmployeeQuery qo);

    Employee login(String username, String password);


    void deleteBatch(Long[] ids);

    Employee checkName(String name);

    List<Employee> selectByclassAll();

    Workbook exportXls();

    void importXls(MultipartFile file) throws IOException;

    List<Employee> selectEmpByRole(String...sns);
}